/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 @author Javier Aparicio García
 */
package formula.one.urjc.dueño.view;

import javax.swing.DefaultListModel;
import javax.swing.JInternalFrame;
import javax.swing.JList;
import javax.swing.JTextArea;
import javax.swing.JTextField;


/**
 *
 * @author Javier Aparicio García
 */
public class VentanaDueñoEscuderia extends JInternalFrame {


    /** Creates new form VentanaAminEcudAlta */
    public VentanaDueñoEscuderia() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelPropietario = new javax.swing.JLabel();
        jTextPropietario = new javax.swing.JTextField();
        jLabelNombre = new javax.swing.JLabel();
        jTextNombre = new javax.swing.JTextField();
        jLabelPais = new javax.swing.JLabel();
        jTextPais = new javax.swing.JTextField();
        jLabelAnyo = new javax.swing.JLabel();
        jTextAnyo = new javax.swing.JTextField();
        jLabelPresupuesto = new javax.swing.JLabel();
        jTextPresupuesto = new javax.swing.JTextField();
        jLabelDirectivos = new javax.swing.JLabel();
        jLabelPilotOfic = new javax.swing.JLabel();
        jLabelPilotProb = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextDiectivos = new javax.swing.JTextArea();
        jScrollPane2 = new javax.swing.JScrollPane();
        jListPilotOfic = new javax.swing.JList();
        jScrollPane3 = new javax.swing.JScrollPane();
        jListPilotProb = new javax.swing.JList();
        jLabel1 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jListCoches = new javax.swing.JList();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jListEquipos = new javax.swing.JList();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Datos Escudería");

        jLabelPropietario.setText("Dueño:");

        jTextPropietario.setEditable(false);

        jLabelNombre.setText("Nombre: ");

        jTextNombre.setEditable(false);

        jLabelPais.setText("País:");

        jTextPais.setEditable(false);

        jLabelAnyo.setText("Año creación:");

        jTextAnyo.setEditable(false);

        jLabelPresupuesto.setText("Presupuesto:");

        jTextPresupuesto.setEditable(false);

        jLabelDirectivos.setText("Directivos:");

        jLabelPilotOfic.setText("Pilotos Oficiales:");

        jLabelPilotProb.setText("Pilotos Probadores:");

        jTextDiectivos.setColumns(20);
        jTextDiectivos.setEditable(false);
        jTextDiectivos.setRows(5);
        jTextDiectivos.setToolTipText("Separar por ; los nombres de directivos");
        jScrollPane1.setViewportView(jTextDiectivos);

        jListPilotOfic.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane2.setViewportView(jListPilotOfic);

        jListPilotProb.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane3.setViewportView(jListPilotProb);

        jLabel1.setText("Coches:");

        jListCoches.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane4.setViewportView(jListCoches);

        jLabel2.setText("Equipos Competición:");

        jListEquipos.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPane5.setViewportView(jListEquipos);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 533, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
                            .addContainerGap())
                        .add(layout.createSequentialGroup()
                            .add(jLabelPilotProb)
                            .addContainerGap(437, Short.MAX_VALUE))
                        .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jLabelPais)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jLabelDirectivos)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                        .add(jLabelAnyo)
                                        .add(jLabelNombre)
                                        .add(jLabelPropietario))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                        .add(org.jdesktop.layout.GroupLayout.TRAILING, jTextNombre, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)
                                        .add(layout.createSequentialGroup()
                                            .add(jTextAnyo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 71, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 154, Short.MAX_VALUE)
                                            .add(jLabelPresupuesto)
                                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                            .add(jTextPresupuesto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 126, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                        .add(jTextPais, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)
                                        .add(jTextPropietario, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)))
                                .add(org.jdesktop.layout.GroupLayout.LEADING, jLabelPilotOfic))
                            .add(20, 20, 20))
                        .add(layout.createSequentialGroup()
                            .add(jLabel1)
                            .addContainerGap(508, Short.MAX_VALUE))
                        .add(layout.createSequentialGroup()
                            .add(jLabel2)
                            .addContainerGap(420, Short.MAX_VALUE)))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabelPropietario)
                    .add(jTextPropietario, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabelNombre)
                    .add(jTextNombre, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabelPais)
                    .add(jTextPais, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabelAnyo)
                    .add(jTextAnyo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextPresupuesto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabelPresupuesto))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jLabelDirectivos)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 59, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jLabelPilotOfic, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(6, 6, 6)
                .add(jLabelPilotProb)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 37, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel1)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel2)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(33, 33, 33))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaDueñoEscuderia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaDueñoEscuderia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaDueñoEscuderia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaDueñoEscuderia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new VentanaDueñoEscuderia().setVisible(true);
            }
        });
    }


    public JList getjListPilotOfic() {
        return jListPilotOfic;
    }

    public JList getjListPilotProb() {
        return jListPilotProb;
    }

    public JTextField getjTextAnyo() {
        return jTextAnyo;
    }

    public JTextArea getjTextDiectivos() {
        return jTextDiectivos;
    }

    public JTextField getjTextNombre() {
        return jTextNombre;
    }

    public JTextField getjTextPais() {
        return jTextPais;
    }

    public JTextField getjTextPresupuesto() {
        return jTextPresupuesto;
    }

    public JTextField getjTextPropietario() {
        return jTextPropietario;
    }

    public JList getjListCoches() {
        return jListCoches;
    }

    public JList getjListEquipos() {
        return jListEquipos;
    }

    
    public DefaultListModel getModelListPiltotosOficiales() {
        if(modelListPiltotosOficiales==null){
            modelListPiltotosOficiales=new DefaultListModel();
        }
        return modelListPiltotosOficiales;
    }

    public DefaultListModel getModelListPiltotosProbadores() {
        if(modelListPiltotosProbadores==null){
            modelListPiltotosProbadores= new DefaultListModel();
        }
        return modelListPiltotosProbadores;
    }

    public DefaultListModel getModelListCoches() {
        if(modelListCoches==null){
            modelListCoches=new DefaultListModel();
        }
        return modelListCoches;
    }

    public DefaultListModel getModelListCompeticion() {
        if(modelListEquipos==null){
            modelListEquipos=new DefaultListModel();
        }
        return modelListEquipos;
    }
    
    
    private DefaultListModel modelListPiltotosOficiales;
    private DefaultListModel modelListPiltotosProbadores;
    private DefaultListModel modelListCoches;
    private DefaultListModel modelListEquipos;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabelAnyo;
    private javax.swing.JLabel jLabelDirectivos;
    private javax.swing.JLabel jLabelNombre;
    private javax.swing.JLabel jLabelPais;
    private javax.swing.JLabel jLabelPilotOfic;
    private javax.swing.JLabel jLabelPilotProb;
    private javax.swing.JLabel jLabelPresupuesto;
    private javax.swing.JLabel jLabelPropietario;
    private javax.swing.JList jListCoches;
    private javax.swing.JList jListEquipos;
    private javax.swing.JList jListPilotOfic;
    private javax.swing.JList jListPilotProb;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JTextField jTextAnyo;
    private javax.swing.JTextArea jTextDiectivos;
    private javax.swing.JTextField jTextNombre;
    private javax.swing.JTextField jTextPais;
    private javax.swing.JTextField jTextPresupuesto;
    private javax.swing.JTextField jTextPropietario;
    // End of variables declaration//GEN-END:variables
}
